package com.hm.email.mongo.domain;

import java.util.List;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.hm.common.model.BaseModel;
import com.hm.email.mongo.domain.def.EmailTypeDef;
import com.hm.email.mongo.util.EmailMongoDataDef;

import lombok.Getter;
import lombok.Setter;

/**
 * @author shishun.wang
 * @date 下午4:29:29 2016年6月16日
 * @version 1.0
 * @describe
 */
@Setter
@Getter
@Document(collection = EmailMongoDataDef.Db.Mongo.PREFIX + "email")
public class Email extends BaseModel {

	private static final long serialVersionUID = 1L;

	/**
	 * 邮件类型
	 */
	@Field("email_type")
	private EmailTypeDef emailType;

	/**
	 * 收件人
	 */
	@Field("recipient")
	private List<String> recipient;

	/**
	 * 抄送
	 */
	@Field("copy_to")
	private List<String> copyTo;

	/**
	 * 主题
	 */
	@Field("theme")
	private String theme;

	/**
	 * 内容
	 */
	@Field("content")
	private String content;

}
